package com.woniuxy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class TestEcharstsController {
    @GetMapping("/first")
    public ModelAndView firstDemo(){
        return new ModelAndView("test");
    }
    @GetMapping("/two")
    public ModelAndView twoDemo(){
        return new ModelAndView("demo1");
    }
}
